home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / mofro.swf / scripts / frame_1 / DoAction_2.as next >
Encoding:
Text File  |  2011-01-13  |  9.8 KB  |  257 lines

  1. function initarrays()
  2. {
  3.    dis = 20;
  4.    doors = new Array();
  5.    doors = new Array();
  6.    doors[0] = ["scene2",1,dis,true,"key"];
  7.    doors[1] = ["scene1",0,- dis];
  8.    doors[2] = ["scene1",3,dis];
  9.    doors[3] = ["scene3",5,- dis];
  10.    doors[4] = ["scene4",16,dis];
  11.    doors[5] = ["scene1",3,dis];
  12.    doors[6] = ["scene5",8,dis];
  13.    doors[7] = ["scene5",9,dis];
  14.    doors[8] = ["scene4",6,- dis];
  15.    doors[9] = ["scene4",7,- dis];
  16.    doors[10] = ["scene6",13,dis];
  17.    doors[11] = ["scene6",12,dis,true,"keycard"];
  18.    doors[12] = ["scene20",11,- dis,true,"locked"];
  19.    doors[13] = ["scene5",10,- dis];
  20.    doors[14] = ["scene3",15,- dis];
  21.    doors[15] = ["scene6",14,dis];
  22.    doors[16] = ["scene2",4,- dis];
  23.    doors[17] = ["scene11",40,- dis];
  24.    doors[18] = ["scene11",38,dis];
  25.    doors[19] = ["scene11",39,- dis];
  26.    doors[20] = ["scene8",21,dis];
  27.    doors[21] = ["scene7",20,- dis];
  28.    doors[22] = ["scene9",26,dis];
  29.    doors[23] = ["scene7",31,- dis,true,"key"];
  30.    doors[24] = ["scene8",36,- dis];
  31.    doors[25] = ["scene21",82,- dis,true,"hallpass"];
  32.    doors[26] = ["scene8",22,- dis,true,"key"];
  33.    doors[27] = ["scene10",32,dis];
  34.    doors[28] = ["scene21",80,- dis,true,"hallpass"];
  35.    doors[30] = ["scene12",43,dis];
  36.    doors[31] = ["scene8",23,dis,true,"key"];
  37.    doors[32] = ["scene9",27,- dis];
  38.    doors[33] = ["scene21",82,- dis];
  39.    doors[34] = ["scene11",41,dis,true,"locked"];
  40.    doors[35] = ["scene13",47,dis];
  41.    doors[36] = ["scene9",24,dis];
  42.    doors[37] = ["scene12",44,dis];
  43.    doors[38] = ["scene7",18,- dis,true,"keycard"];
  44.    doors[39] = ["scene7",19,dis];
  45.    doors[40] = ["scene7",17,dis];
  46.    doors[41] = ["scene12",45,- dis];
  47.    doors[43] = ["scene7",30,- dis,true,"key"];
  48.    doors[44] = ["scene11",37,- dis];
  49.    doors[45] = ["scene11",41,dis];
  50.    doors[46] = ["scene13",48,dis];
  51.    doors[47] = ["scene10",35,- dis];
  52.    doors[48] = ["scene12",46,- dis];
  53.    doors[49] = ["scene12",50,dis];
  54.    doors[50] = ["scene13",49,- dis];
  55.    doors[52] = ["scene37",109,- dis];
  56.    doors[53] = ["scene21",81,dis];
  57.    doors[54] = ["scene21",81,dis,true,"hallpass"];
  58.    doors[56] = ["scene15",57,dis];
  59.    doors[57] = ["scene14",56,- dis];
  60.    doors[58] = ["scene18",66,dis];
  61.    doors[59] = ["scene16",62,dis,true,"keycard"];
  62.    doors[60] = ["scene18",72,dis];
  63.    doors[61] = ["scene16",64,- dis];
  64.    doors[62] = ["scene15",59,- dis];
  65.    doors[63] = ["scene17",75,- dis,true,"locked"];
  66.    doors[64] = ["scene14",61,dis];
  67.    doors[66] = ["scene15",58,- dis];
  68.    doors[67] = ["scene15",60,- dis];
  69.    doors[68] = ["scene19",73,- dis];
  70.    doors[69] = ["scene18",71,- dis];
  71.    doors[70] = ["scene19",74,- dis];
  72.    doors[71] = ["scene17",69,dis];
  73.    doors[72] = ["scene15",60,- dis];
  74.    doors[73] = ["scene17",68,dis];
  75.    doors[74] = ["scene17",70,dis];
  76.    doors[75] = ["scene16",63,dis,true,"key"];
  77.    doors[76] = ["scene2",77,- dis,true,"key"];
  78.    doors[77] = ["scene5",76,dis,true,"key"];
  79.    doors[78] = ["scene20",79,dis];
  80.    doors[79] = ["scene5",78,- dis];
  81.    doors[80] = ["scene3",28,dis];
  82.    doors[81] = ["scene14",53,- dis];
  83.    doors[82] = ["scene10",33,dis];
  84.    doors[83] = ["scene27",97,dis];
  85.    doors[124] = ["scene39",123,- dis];
  86.    doors[123] = ["scene21",124,dis];
  87.    doors[85] = ["scene22",86,dis];
  88.    doors[86] = ["scene21",85,- dis];
  89.    doors[87] = ["scene24",90,dis];
  90.    doors[90] = ["scene22",87,- dis];
  91.    doors[91] = ["scene23",88,- dis];
  92.    doors[88] = ["scene24",91,dis];
  93.    doors[89] = ["scene25",92,dis];
  94.    doors[92] = ["scene23",89,- dis];
  95.    doors[93] = ["scene26",95,dis];
  96.    doors[94] = ["scene26",96,dis];
  97.    doors[95] = ["scene25",93,- dis];
  98.    doors[96] = ["scene25",94,- dis];
  99.    doors[97] = ["scene26",83,- dis];
  100.    doors[98] = ["scene28",99,dis];
  101.    doors[99] = ["scene27",98,- dis];
  102.    doors[100] = ["scene29",101,dis];
  103.    doors[101] = ["scene28",100,- dis];
  104.    doors[102] = ["scene30",103,dis];
  105.    doors[103] = ["scene29",102,- dis];
  106.    doors[104] = ["scene21",85,- dis,true,"hallpass"];
  107.    doors[105] = ["scene21",106,dis];
  108.    doors[106] = ["scene31",105,- dis];
  109.    doors[107] = ["scene32",108,dis];
  110.    doors[108] = ["scene31",107,- dis];
  111.    doors[109] = ["scene31",52,dis];
  112.    doors[110] = ["scene33",111,dis];
  113.    doors[111] = ["scene32",110,- dis];
  114.    doors[112] = ["scene34",113,dis];
  115.    doors[113] = ["scene33",112,- dis];
  116.    doors[114] = ["scene36",117,dis];
  117.    doors[115] = ["scene37",120,- dis];
  118.    doors[116] = ["scene38",121,dis];
  119.    doors[117] = ["scene34",114,- dis];
  120.    doors[118] = ["scene37",119,dis];
  121.    doors[119] = ["scene36",118,- dis];
  122.    doors[120] = ["scene35",115,dis];
  123.    doors[121] = ["scene35",116,- dis];
  124.    doors[122] = ["scene40",123,- dis,true,"locked"];
  125.    items = new Array();
  126.    items[0] = ["a heatseeking missile","heatseeker",true,3];
  127.    items[1] = ["a keycard","keycard",false,0];
  128.    items[2] = ["a bouncy ball","bounceyballs",true,2];
  129.    items[3] = ["a key","key",false,0];
  130.    items[4] = ["a fireball","fireball",true,1];
  131.    items[5] = ["a fireball","fireball",true,1];
  132.    items[6] = ["a hall pass","hallpass",false,0];
  133.    items[7] = ["a fireball","fireball",true,1];
  134.    items[8] = ["a small black key","key",false,0];
  135.    items[9] = ["a bouncy ball","bounceyballs",true,2];
  136.    items[10] = ["a hampster","hampster",false,0];
  137.    items[11] = ["a heatseeking missile","heatseeker",true,3];
  138.    items[12] = ["a severed hand","severedhand",false,0];
  139.    items[13] = ["a hall pass","hallpass",false,0];
  140.    items[14] = ["a key","key",false,0];
  141.    items[15] = ["a fireball","fireball",true,1];
  142.    items[16] = ["a bouncy ball","bounceyballs",true,2];
  143.    items[17] = ["a keycard","keycard",false,0];
  144.    items[18] = ["a heatseeking missile","heatseeker",true,3];
  145.    items[19] = ["a fireball","fireball",true,1];
  146.    items[20] = ["a bouncy ball","bounceyballs",true,2];
  147.    items[21] = ["a key","key",false,0];
  148.    items[22] = ["a key","key",false,0];
  149.    items[23] = ["a heatseeking missile","heatseeker",true,3];
  150.    items[24] = ["a heatseeking missile","heatseeker",true,3];
  151.    items[25] = ["a bouncyball","bounceyballs",true,2];
  152.    items[26] = ["a hall pass","hallpass",false,0];
  153.    items[27] = ["a bouncyball","bounceyballs",true,2];
  154.    items[28] = ["a dry martini","martini",false];
  155.    items[29] = ["a keycard","keycard",false,0];
  156.    items[30] = ["a bouncyball","bounceyballs",true,2];
  157.    items[31] = ["a key","key",false,0];
  158.    items[32] = ["a bouncy ball","bounceyballs",true,2];
  159.    items[33] = ["a fireball","fireball",true,1];
  160.    items[34] = ["a hamburger","hamburger",false,0];
  161.    items[35] = ["a bouncy ball","bounceyballs",true,2];
  162.    items[36] = ["a bouncy ball","bounceyballs",true,2];
  163.    items[37] = ["a hall pass","hallpass",false,0];
  164.    items[38] = ["a bouncy ball","bounceyballs",true,2];
  165.    items[39] = ["a fireball","fireball",true,1];
  166.    items[40] = ["a tram conductor","tramconductor",false,0];
  167.    items[41] = ["a heatseeking missile","heatseeker",true,3];
  168.    swarmarray = new Array();
  169.    swarmarray[2] = [2,240,300];
  170.    swarmarray[4] = ["alien",350,405];
  171.    swarmarray[5] = ["alien",391,407];
  172.    swarmarray[6] = [2,520,130];
  173.    swarmarray[7] = ["alien",628,303,"prof"];
  174.    swarmarray[8] = ["alien",445.3,194.3,"prof"];
  175.    swarmarray[9] = [1,240,300];
  176.    swarmarray[10] = [1,100,50];
  177.    swarmarray[11] = [1,400,300];
  178.    swarmarray[12] = ["alien",629,261,"prof"];
  179.    swarmarray[13] = [1,240,300];
  180.    swarmarray[15] = [2,240,300];
  181.    swarmarray[16] = [1,240,300];
  182.    swarmarray[19] = [1,240,300];
  183.    swarmarray[20] = [1,240,300];
  184.    swarmarray[27] = [2,10,300];
  185.    swarmarray[30] = [2,300,300];
  186.    swarmarray[34] = [1,300,300];
  187.    swarmarray[36] = [1,300,300];
  188.    sceneword = new Array();
  189.    sceneword[1] = "in the conservatory";
  190.    sceneword[2] = "in the conservatory";
  191.    sceneword[3] = "beside the hallway";
  192.    sceneword[4] = "in the conservatory";
  193.    sceneword[5] = "in the conservatory";
  194.    sceneword[6] = "beside the the conservatory";
  195.    sceneword[7] = "in the loungeroom";
  196.    sceneword[8] = "in the loungeroom";
  197.    sceneword[9] = "beside the hallway";
  198.    sceneword[10] = "near the hallway";
  199.    sceneword[11] = "in the loungeroom";
  200.    sceneword[12] = "in the loungeroom";
  201.    sceneword[13] = "in the loungeroom";
  202.    sceneword[14] = "near the kitchen";
  203.    sceneword[15] = "in the kitchen";
  204.    sceneword[16] = "near the kitchen";
  205.    sceneword[17] = "in the pantry";
  206.    sceneword[18] = "in the pantry";
  207.    sceneword[19] = "in the pantry";
  208.    sceneword[20] = "under the conservatory";
  209.    sceneword[21] = "in the hallway";
  210.    sceneword[22] = "above the basement";
  211.    sceneword[23] = "entering the basement";
  212.    sceneword[24] = "in the basement";
  213.    sceneword[25] = "in the basement";
  214.    sceneword[26] = "in the basement";
  215.    sceneword[27] = "in the basement";
  216.    sceneword[28] = "in the basement";
  217.    sceneword[29] = "in the basement";
  218.    sceneword[30] = "beside the hallway";
  219.    sceneword[31] = "close to the hallway";
  220.    sceneword[32] = "above the city";
  221.    sceneword[33] = "entering gang turf";
  222.    sceneword[34] = "in the mean streets";
  223.    sceneword[35] = "caught in the crossfire";
  224.    sceneword[36] = "half way";
  225.    sceneword[37] = "in the wrong place at the wrong time";
  226.    sceneword[38] = "lucky";
  227.    sceneword[39] = "in the showroom";
  228.    door2 = new Array();
  229.    door2[0] = [true,"hampster"];
  230.    door2[1] = [true,"martini"];
  231.    door2[2] = [true,"severedhand"];
  232.    door2[3] = [true,"hamburger"];
  233.    door2[4] = [true,"tramconductor"];
  234.    lifelength = 40;
  235.    lifearray = new Array();
  236.    i = 0;
  237.    while(i <= lifelength)
  238.    {
  239.       lifearray[i] = true;
  240.       i++;
  241.    }
  242.    phoneslength = 5;
  243.    phonesused = new Array();
  244.    i = 0;
  245.    while(i <= phoneslength)
  246.    {
  247.       phonesused[i] = false;
  248.       i++;
  249.    }
  250.    phatlist = new Array();
  251.    phatlist[3] = [180,429.6];
  252.    phatlist[13] = [613.9,277.3];
  253.    phatlist[14] = [64.5,315.3];
  254.    phatlist[30] = [93.5,356.3];
  255.    phatlist[38] = [604.5,189.3];
  256. }
  257.